﻿<%@ page import="com.timeDeal.bean.UserBean" %>
<%@ page import="com.timeDeal.service.UserService" %>
<%@ page import="com.timeDeal.bean.GuanliyuanBean" %><%--
  Created by IntelliJ IDEA.
  User: 妮子
  Date: 2016/8/31
  Time: 17:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String ctxpath=request.getContextPath();
    UserBean loginuser = (UserBean)request.getSession().getAttribute("USER");
    String chakan = request.getParameter("id");
   // UserService userService =   new UserService() ;
  //  UserBean  chakanren =  userService.getAuserByid(Integer.valueOf(chakan)) ;
    GuanliyuanBean loginadmin =(GuanliyuanBean)request.getSession().getAttribute("ADMIN");
%>
<html>
<head>
    <script type="text/javascript">
        function refresh(obj) {
            obj.src = "${pageContext.request.contextPath}/imageServlet?"+Math.random();
        }
    </script>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>欢迎使用时间交易系统</title>
    <link href="<%=ctxpath%>/static/bootstrap-3.3.5-dist/css/bootstrap.min.css" rel="stylesheet"  />
    <link href="<%=ctxpath%>/static/top.css" rel="stylesheet"  />
    <script src="<%=ctxpath%>/static/bootstrap-3.3.5-dist/js/jquery.min.js"></script>
    <script src="<%=ctxpath%>/inc/user.js"></script>
    <script language="javascript" type="text/javascript" src="<%=ctxpath%>/static/My97DatePicker/WdatePicker.js"></script>
</head>
<body style="background-image: url(<%=ctxpath%>/img/28.jpg);background-size:100%;clear: both;margin-left: 250px;margin-right: 250px">
<div style="text-align: right;height:8%">
    <canvas id = "canvas" width="110" height="100" style="float: left"></canvas>
    <script src="<%=ctxpath%>/static/clock.js"></script>
    <span style="float: left"><h1><strong>欢迎使用时间交易系统</strong></h1></span>
    <h4 style="float:left;margin-left: 30px;margin-top: 0px">当前时间</h4>
    <br>
    <div id="time" class="time"> </div>
    <%if(loginuser!=null){ %>
    <a   class="btn btn-info" href="<%=ctxpath%>/user/bierenxinxi.jsp?id=<%=loginuser.getYonghuid()%>"><%=loginuser.getYonghuming()%></a>
    <a  id="layout" class="btn btn-info" href="<%=ctxpath%>/layout?flag=1">退出</a>
    <%  } else {  %>
    <input type="button" id="zhao_login" class="btn btn-primary" value="登录">
    <input type="button" id="wang_reg" class="btn btn-primary" value="注册">

    <% } %>
</div>
<br/>
<br/>
<br/>
<nav class="navbar-inverse">
    <div class="navbar-collapse collapse" role="navigation">
        <ul class="nav navbar-nav">
            <li><a href="<%=ctxpath%>/user/zhujiemiangg.jsp?leixing=shijianchushou">时间出售展示</a></li>
            <li><a href="<%=ctxpath%>/user/zhujiemiangg.jsp">需求发布展示</a></li>
            <li><a id="btn_xuqiu" >我要发布需求</a></li>
            <li><a id="btn-shijian" >我要出售时间</a></li>

        </ul>
    </div>
</nav>

<div class="container-fluid" style="clear:both;background-color: white">